<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<script language="javascript" type="text/javascript">

	function tableOrdering( order, dir, task )
	{
		var form = document.adminForm;

		form.filter_order.value 	= order;
		form.filter_order_Dir.value	= dir;
		document.adminForm.submit( task );
	}
</script>
<form action="<?php echo $this->action; ?>" method="post" name="adminForm">

 
<?php 
  $i = 0;
foreach ($this->items as $item) :
if(($i % 2) == 0) { echo '<ul class="lstCate"> ';}
?>
<li class="sectiontableentry<?php echo ($item->odd +1 ) . $this->escape($this->params->get('pageclass_sfx')); ?>" >
	<div class="proInfo02">
        <img  src="<?php echo JURI::root();?>images/sunrise/articles/<?php echo $item->pro_image?>" width="200" height="120" />
	</div>
	<div class="proInfo01">
		<p><a href="<?php echo $item->link; ?>"><?php echo $this->escape($item->title); ?></a></p>
        <p><span class="proCode"><?php echo $item->pro_code;?></span></p>
        <?php echo $item->introtext;?>
	</div>   
</li>
<?php 
$i++;
if(($i % 2) == 0) { echo '</ul> ';}

endforeach; ?>
</ul>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<?php if ($this->params->get('show_pagination')) : ?>
<tr>
	<td colspan="5">&nbsp;</td>
</tr>
<tr>
	<td align="center" colspan="4" class="sectiontablefooter<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
		<?php echo $this->pagination->getPagesLinks(); ?>
	</td>
</tr>
<tr>
	<td colspan="5" align="right">
		<?php echo $this->pagination->getPagesCounter(); ?>
	</td>
</tr>
<?php endif; ?>
</table>

<input type="hidden" name="id" value="<?php echo $this->category->id; ?>" />
<input type="hidden" name="sectionid" value="<?php echo $this->category->sectionid; ?>" />
<input type="hidden" name="task" value="<?php echo $this->lists['task']; ?>" />
<input type="hidden" name="filter_order" value="" />
<input type="hidden" name="filter_order_Dir" value="" />
<input type="hidden" name="limitstart" value="0" />
<input type="hidden" name="viewcache" value="0" />
</form>
